﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WAD.WEB.AppCode.Pay.AlipayFk;

namespace WAD.WEB.alipay_fk
{
    public partial class pay : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            AlipayFkModel m = new AlipayFkModel() { AlipayAcount = "15086023130", AlipayName = "周隆权", Money = 1.0, Remark = "测试", SerialNumber = "1231556" };
            
            String notifyUrl = "http://192.168.1.155";
            String batchNo = "20160223" + DateTime.Now.ToString("yyyyMMddHHmmss");

            //必填，格式：当天日期[8位]+序列号[3至16位]，如：201008010000001
             List<AlipayFkModel> userList = new List<AlipayFkModel>();
            userList.Add(m);
            String sHtmlText = AlipayFkUtil.Pay(notifyUrl, batchNo, userList);

            //Response.AddHeader("Content-Type", "text/plain");
            Response.Write(sHtmlText);
        }
    }
}